home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1998 August / PC Plus SuperCD 50a Issue 142 (CD142a) (August 1998).iso / trial / demon / TURNPIKE.1 / CLASSES.ZIP / JAVA / AWT / GridBagConstraints.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-04-14  |  1.4 KB  |  47 lines

  1. package java.awt;
  2.  
  3. public class GridBagConstraints implements Cloneable {
  4.    public static final int RELATIVE = -1;
  5.    public static final int REMAINDER = 0;
  6.    public static final int NONE = 0;
  7.    public static final int BOTH = 1;
  8.    public static final int HORIZONTAL = 2;
  9.    public static final int VERTICAL = 3;
  10.    public static final int CENTER = 10;
  11.    public static final int NORTH = 11;
  12.    public static final int NORTHEAST = 12;
  13.    public static final int EAST = 13;
  14.    public static final int SOUTHEAST = 14;
  15.    public static final int SOUTH = 15;
  16.    public static final int SOUTHWEST = 16;
  17.    public static final int WEST = 17;
  18.    public static final int NORTHWEST = 18;
  19.    public int gridx = -1;
  20.    public int gridy = -1;
  21.    public int gridwidth = 1;
  22.    public int gridheight = 1;
  23.    public double weightx = (double)0.0F;
  24.    public double weighty = (double)0.0F;
  25.    public int anchor = 10;
  26.    public int fill = 0;
  27.    public Insets insets = new Insets(0, 0, 0, 0);
  28.    public int ipadx = 0;
  29.    public int ipady = 0;
  30.    int tempX;
  31.    int tempY;
  32.    int tempWidth;
  33.    int tempHeight;
  34.    int minWidth;
  35.    int minHeight;
  36.  
  37.    public Object clone() {
  38.       try {
  39.          GridBagConstraints var1 = (GridBagConstraints)super.clone();
  40.          var1.insets = (Insets)this.insets.clone();
  41.          return var1;
  42.       } catch (CloneNotSupportedException var2) {
  43.          throw new InternalError();
  44.       }
  45.    }
  46. }
  47.